package com.ruoyi.info.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.info.mapper.FhInfoSigninlistMapper;
import com.ruoyi.info.domain.FhInfoSigninlist;
import com.ruoyi.info.service.IFhInfoSigninlistService;

/**
 * 签到列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-09
 */
@Service
public class FhInfoSigninlistServiceImpl implements IFhInfoSigninlistService 
{
    @Autowired
    private FhInfoSigninlistMapper fhInfoSigninlistMapper;

    /**
     * 查询签到列表
     * 
     * @param id 签到列表主键
     * @return 签到列表
     */
    @Override
    public FhInfoSigninlist selectFhInfoSigninlistById(Long id)
    {
        return fhInfoSigninlistMapper.selectFhInfoSigninlistById(id);
    }

    /**
     * 查询签到列表列表
     * 
     * @param fhInfoSigninlist 签到列表
     * @return 签到列表
     */
    @Override
    public List<FhInfoSigninlist> selectFhInfoSigninlistList(FhInfoSigninlist fhInfoSigninlist)
    {
        return fhInfoSigninlistMapper.selectFhInfoSigninlistList(fhInfoSigninlist);
    }

    /**
     * 新增签到列表
     * 
     * @param fhInfoSigninlist 签到列表
     * @return 结果
     */
    @Override
    public int insertFhInfoSigninlist(FhInfoSigninlist fhInfoSigninlist)
    {
        return fhInfoSigninlistMapper.insertFhInfoSigninlist(fhInfoSigninlist);
    }

    /**
     * 修改签到列表
     * 
     * @param fhInfoSigninlist 签到列表
     * @return 结果
     */
    @Override
    public int updateFhInfoSigninlist(FhInfoSigninlist fhInfoSigninlist)
    {
        fhInfoSigninlist.setUpdateTime(DateUtils.getNowDate());
        return fhInfoSigninlistMapper.updateFhInfoSigninlist(fhInfoSigninlist);
    }

    /**
     * 批量删除签到列表
     * 
     * @param ids 需要删除的签到列表主键
     * @return 结果
     */
    @Override
    public int deleteFhInfoSigninlistByIds(Long[] ids)
    {
        return fhInfoSigninlistMapper.deleteFhInfoSigninlistByIds(ids);
    }

    /**
     * 删除签到列表信息
     * 
     * @param id 签到列表主键
     * @return 结果
     */
    @Override
    public int deleteFhInfoSigninlistById(Long id)
    {
        return fhInfoSigninlistMapper.deleteFhInfoSigninlistById(id);
    }
}
